package org.fioma.search;


public class SimpleMatchReadCollection implements MatchReadCollection {

	Match[] matches;
	int size = 0;

	public SimpleMatchReadCollection(int maxSize) {
		matches = new Match[maxSize];
	}

	@Override
	public Match getMatch(int i) {
		return matches[i];
	}

	@Override
	public Match[] getMatches() {
		return matches;
	}

	@Override
	public void addMatchSorted(Match match) {
		matches[size] = match;
		size++;
	}

	@Override
	public int size() {
		return size;
	}

	@Override
	public void clear() {
		size = 0;
	}

}
